import request from '@/utils/request'

export function contentDelById (params) {
  return request({
    url: '/content/delById',
    method: 'get',
    params
  })
}

export function contentGetById (params) {
  return request({
    url: '/content/getById',
    method: 'get',
    params
  })
}

export function contentList (params) {
  return request({
    url: '/content/list',
    method: 'get',
    params
  })
}

export function contentSave (data) {
  return request({
    url: '/content/save',
    method: 'post',
    data
  })
}

export function contentUpdate (data) {
  return request({
    url: '/content/update',
    method: 'post',
    data
  })
}

export function deleteRecommend (params) {
  return request({
    url: '/RecommendInfoController/delete',
    method: 'get',
    params
  })
}

export function saveRecommend (data) {
  return request({
    url: '/RecommendInfoController/save',
    method: 'post',
    data
  })
}

export function commonList (params) {
  return request({
    url: '/common/list',
    method: 'get',
    params
  })
}

export function commonGetById (params) {
  return request({
    url: '/common/getById',
    method: 'get',
    params
  })
}

export function commonSave (data) {
  return request({
    url: '/common/save',
    method: 'post',
    data
  })
}

export function commonUpdate (data) {
  return request({
    url: '/common/update',
    method: 'post',
    data
  })
}

export function commonDelById (params) {
  return request({
    url: '/common/delById',
    method: 'get',
    params
  })
}

export function delByIdTrue (params) {
  return request({
    url: '/content/delByIdTrue',
    method: 'get',
    params
  })
}
